<?php

/**
 * IndexController - The default controller class
 * 
 * @author
 * @version 
 */

require_once 'Zend/Controller/Action.php';

class Adminb_IndexController extends Zend_Controller_Action 
{
	

	
	public function init(){
		
		$member=new CMember();
		
		if(!$member->isUser($this->_request->getModuleName(),$this->_request->getControllerName())){

			
				$this->_redirect(MY_URL.'/auth-login?preurl='.CURRENT_URL);

			
		}
		
	}
	
	public function preDispatch()
	{

		$this->view->addHelperPath(MY_ROOT.'/vhelpers');
		
		Zend_Controller_Action_HelperBroker::addPath(MY_ROOT.'/chelpers');
		
	}

	
    public function indexAction() 
    { 	

		$this->view->assign('current_action','index');
		
		$iframeUrl=urldecode($this->_request->getParam("iframeUrl"));
		
		$this->view->assign('iframeUrl',$iframeUrl);

    }
	
	public function postAction(){
	
		//$this->_helper->viewRenderer->setNoRender();
		
		//$this->getHelper ('layout')->disableLayout ();
	
	}
    

    
}
